package com.lumm;


import com.alibaba.fastjson.JSONObject;
import org.json.JSONException;

public class Temp {

    public static void main(String[] args) {

        String jsonStr="{\"age\":32,\"name\":null}";

        try {
            org.json.JSONObject jsonObject=new org.json.JSONObject(jsonStr);

            System.out.println(jsonObject.get("age"));
            //System.out.println(jsonObject.getInt("name"));
            System.out.println(jsonObject.get("name"));
            System.out.println(jsonObject.get("height"));

        } catch (JSONException e) {
            e.printStackTrace();
        }
        //JSONObject jsonObject=new JSONObject.parseObject(jsonStr);


    }


}
